﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace RestaurantManagerWebApp.Pages.StockManagement
{
    public partial class MainStockManagement : System.Web.UI.Page
    {
        #region Initalize variables
        public static string shtml = string.Empty;
        #endregion

        protected void Page_Load(object sender, EventArgs e)
        {

            #region Display the Table
            shtml = "<body>";
            shtml += "<div id='wrapper'>";
            shtml += "<h1>Current Stock Level</h1>";
            #region Table
            shtml += " <table id='keywords' cellspacing='0' cellpadding='0'>";
            #region Header of the Table
            shtml += "  <thead>";
            shtml += "  <tr>";
            shtml += "    <th><span>No</span></th>";
            shtml += "    <th><span>Stock ID</span></th>";
            shtml += "   <th><span>Stock Name</span></th>";
            shtml += "    <th><span>Last Updated Date</span></th>";
            shtml += "    <th><span>Supplier</span></th>";
            shtml += "    <th><span>Selling Price</span></th>";
            shtml += "    <th><span>Stock level</span></th>";
            shtml += "    <th><span>Stock</span></th>";
            shtml += "   </tr>";
            shtml += "  </thead>";
            #endregion

            #region Body of the Table
            shtml += "  <tbody>";
            //shtml += "    <tr>";
            //shtml += "     <td>2</td>";
            //shtml += "     <td>S903238013102</td>";
            //shtml += "     <td class='lalign'>silly tshirts</td>";
            //shtml += "    <td>22 Aug 2014</td>";
            //shtml += "   <td>Kaplan</td>";
            //shtml += "     <td>110 </td>";
            //shtml += "    <td>1.8%</td>";
            //shtml += "   <td>20</td>";
            //shtml += "  </tr>";
            int i= 0;

            shtml += "    <tr>";
            shtml += "     <td>"+i+"</td>";
            shtml += "     <td>S903238013102</td>";
            shtml += "     <td class='lalign'>silly tshirts</td>";
            shtml += "    <td>22 Aug 2014</td>";
            shtml += "   <td>Kaplan</td>";
            shtml += "     <td>110 </td>";
            shtml += "    <td>1.8%</td>";
            shtml += "   <td>20</td>";
            shtml += "  </tr>";

            shtml += "</tbody>";
            #endregion
            shtml += "</table>";
            #endregion
            shtml += "</div> ";
            shtml += "</body>";
            #endregion
        }
    }
}